﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Sisocana.Core.Models.DonacionServiciosModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Donate services
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Support our work! Donate services</h2>

<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>
<% Html.EnableClientValidation(); %>

<% using (Html.BeginForm())
   { %>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>Donate now</legend>
        <%:Html.HiddenFor(model => model.idONGDefinida) %>
        <%:Html.HiddenFor(model => model.idSitio) %>

 
        <div class="editor-label">
            <%: Html.LabelFor(model => model.nombreDelServicio) %>
        </div>
        <div class="editor-field">
            <%= Html.DropDownList("nombreDelServicio")%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.formaDonacion) %>
        </div>
        <div class="editor-field">
            <%= Html.DropDownList("formaDonacion")%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.descripcionDonacion) %>
        </div>
        <div class="editor-field">
            <%: Html.TextAreaFor(model => model.descripcionDonacion)%>
            <%: Html.ValidationMessageFor(model => model.descripcionDonacion) %>
        </div>

        <p>
            <input type="submit" value="Donate" />
        </p>
    </fieldset>
<% } %>

<div>
    <a href="<%= Html.UrlTo("Donate") %>">Back to Donations</a>
</div>

</asp:Content>

<script runat="server">
    protected void Page_PreInit(Object sender, EventArgs e)
    {
        Master.MasterPageFile = Url.Content(ViewBag.Site.dir_master);
        MasterPage UserMaster = Master.Master;
        UserMaster.FindControl("NewsTitleContent").Visible = false;
        UserMaster.FindControl("VideoTitleContent").Visible = false;
        UserMaster.FindControl("ImageTitleContent").Visible = false;
    }
</script>